﻿using System;

namespace DataBaseLayer.Abstractions
{
	public abstract class BaseService
	{
		#region Variables

		protected DocumentManager DataBase { get; private set; }

		#endregion

		#region Constructors

		protected BaseService(DocumentManager dataBase)
		{
			if (dataBase == null)
				throw new ArgumentNullException(string.Format("data base"));

			DataBase = dataBase;
		}

		#endregion
	}
}
